<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <ul class="nav nav-tabs" data-field="pool">
            <li class="{:$Think.get.pool === 0||$Think.get.pool === null ? 'active' : ''}"><a href="#t-0" data-value="0"
                    data-toggle="tab">{:__('未分配')}</a></li>
            <li class="{:$Think.get.pool === 1 ? 'active' : ''}"><a href="#t-1" data-value="1"
                    data-toggle="tab">{:__('已分配')}</a></li>

        </ul>
    </div>


    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i
                                class="fa fa-refresh"></i> </a>
                        <a href="javascript:;"
                            class="btn btn-success btn-add {:$auth->check('user/sale/add')?'':'hide'}"
                            title="{:__('Add')}"><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <!-- <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('user/sale/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> -->
                        <!-- <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('user/sale/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> -->

                        <a class="btn btn-primary dropdown-toggle btn-disabled disabled  {:$auth->check('user/sale/allocation')?'':'hide'} "
                            href="javascript:;" data-toggle="dropdown" id="distributionButton"><i
                                class="fa fa-send"></i>
                            {:__('批量分配')}</a>
                        <a href="/template/sale.xlsx" class="btn btn-info btn-download btn-download"
                            title="{:__('Download')}"><i class="fa fa-download"></i> {:__('下载导入模版')}</a>
                        <!-- <a href="/template/1243custom.xlsx" class="btn btn-primary " title="下载模板" >下载模板</a> -->

                        <a href="javascript:;" data-url="ajax/upload"
                            class="btn btn-info btn-import {:$auth->check('user/sale/import')?'':'hide'}"
                            title="{:__('Import')}"><i class="fa fa-upload"></i> {:__('Import')}</a>

                        <!-- <div class="dropdown btn-group {:$auth->check('user/sale/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                            </ul>
                        </div> -->


                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                        data-operate-edit="{:$auth->check('user/sale/edit')}"
                        data-operate-del="{:$auth->check('user/sale/del')}" width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>